<template>
  <div id="app">
    <router-view />
    <Tabbar v-if="tabType"></Tabbar>
  </div>
</template>
<script>
import Tabbar from "./components/Tabbar.vue";
export default {
  components: {
    Tabbar,
  },
  data(){
    return{
      tabType:true
    }
  },
  watch: {
    $route(e) {
      console.log(e)
      if(e.name=="User")
        sessionStorage.setItem("navPath","User")
      if(e.name=="Lpkcart")
        sessionStorage.setItem("navPath","Lpkcart")
      
      if (e.name == "Home" || e.name == "Sort"|| e.name == "User") {
        this.tabType = true;
      } else {
        this.tabType = false;
      }
    },
  },
};
</script>
<style lang="scss">
#app {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #303030;
}
</style>
